<style>
    .wrapper2 {min-height:400px;width:750px;float:left;padding-right:10px}
    .wrapper2-right{float:right;width:200px}
    .title-right{color:green;font-size:15px;font-weight:bold;border-bottom:2px solid #EDEDED}
    .body-right{min-height:50px}
    input.url{width:500px;color:red;font-style:italic;font-size:13px;border:none;background:none;float:left}
</style>
<div class="wrapper clearfix">
    <div class="wrapper2">
		<br/>
		<strong><span style="color:#003399;font-size:14px;">Đổi điểm thưởng</span></strong><br/>
		Giá trị quy đổi: 1 điểm = <?php echo $point->point_exchange;?> VNĐ
        <section class="row4 padding10 margin5 des_rate_tutor">
		<table width="100%" border="0">
			<tr>
		<?php
		$gifts = $this->common_model->getdata('gift',array('publish'=>1),'',array('cost', 'ASC'),5);
		foreach($gifts as $gift){
			echo '<td style="cursor:pointer;" onclick=\'window.location.href="'.base_url().'doi-diem-thuong/'.$gift->id.'";\' align="center"><img src="'.$gift->image.'" width="60" height="90"></td>';
		}
		echo '</tr><tr>';
		foreach($gifts as $gift){
			echo '<td style="cursor:pointer;" onclick=\'window.location.href="'.base_url().'doi-diem-thuong/'.$gift->id.'";\' align="center"><strong><span style="color:#003399;font-size:12px;">'.$gift->name.'</span></strong></td>';
		}
		echo '</tr><tr>';
		foreach($gifts as $gift){
			echo '<td style="cursor:pointer;" onclick=\'window.location.href="'.base_url().'doi-diem-thuong/'.$gift->id.'";\' align="center"><span style="color:#003399;font-size:12px;">'.number_format($gift->cost).' điểm</span></td>';
		}
		?>
			</tr>
		</table>
        </section>
        <div class="intro_quydoi">
            <?php
                if(!empty($url)) echo str_replace("{url}", $url, $point->quydoi1);
				else echo str_replace("{url}", "", $point->quydoi1);
            ?>
        </div>
        <div class="intro_quydoi">
            <?php
                echo $point->quydoi2;
            ?>
        </div>
    </div>
    <div class="wrapper2-right">
        <div class="heading_right">Tài khoản của bạn</div>
        <div class="body-right">
            <span style="line-height:30px;font-weight:bold;font-size:13px">Điểm của bạn :</span><span style="color: red;font-weight:bold;"><?php echo $user->point;?></span>
        </div>
        <div class="heading_right">Các cách kiểm điểm</div>
        <div class="body-right">
            <?php
                echo $point->quydoi_right;
            ?>
        </div>
    </div>
</div>